<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

Route::get('/', 'index/Index/index');
Route::get('/admin','admin/Index/index');
//登录,后台首页
Route::get('admin/index/logindo','admin/index/logindo');
Route::get('admin/main/index','admin/main/index');
Route::get('admin/con1/index','admin/con1/index');

Route::get('admin/con1/func1','admin/con1/func1');
Route::get('admin/con1/func2','admin/con1/func2');
//用户列表
Route::get('admin/con2/func1','admin/con2/func1');
//添加用户页
Route::get('admin/con2/func2','admin/con2/func2');

//角色列表
Route::get('admin/con3/func1','admin/con3/func1');
//添加角色页
Route::get('admin/con3/func2','admin/con3/func2');

//节点列表页
Route::get('admin/con4/func1','admin/con4/func1');
//添加节点页
Route::get('admin/con4/func2','admin/con4/func2');
//角色分配权限页
Route::get('admin/con3/rulelist/:id','admin/con3/rulelist');
//用户添加
Route::post('admin/con2/save','admin/con2/save');
//角色分配权限
Route::post('admin/con3/giveRule','admin/con3/giveRule');
//用户分配角色页
Route::get('admin/con2/rolelist/:id','admin/con2/rolelist');
//执行分配角色
Route::post('admin/con2/giveRole','admin/con2/giveRole');
//添加方法
Route::post('admin/con4/save','admin/con4/save');

//执行添加角色
Route::post('admin/con3/save','admin/con3/save');

//删除用户
Route::get('admin/con2/delete/:id','admin/con2/delete');
//编辑用户
Route::get('admin/con2/edit/:id','admin/con2/edit');

//删除角色
Route::get('admin/con3/delete/:id','admin/con3/delete');
//编辑角色
Route::get('admin/con3/edit/:id','admin/con3/edit');

//删除节点
Route::get('admin/con4/delete/:id','admin/con4/delete');
//编辑节点
Route::get('admin/con4/edit/:id','admin/con4/edit');

return [

];
